import App from './App'
import trnall from "@/trnall"
import store from "@/trnall/store"
import {
	msg,
	loading,
	jump,
	isLogin,
	debounce,
	throttle,
	prePage,
	date,
	getLocation,
	goToMiniProgram
} from '@/common/js/util'

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
Vue.prototype.$util = {
	msg,
	loading,
	jump,
	isLogin,
	debounce,
	throttle,
	prePage,
	date,
	getLocation,
	goToMiniProgram
}
Vue.use(trnall)
const app = new Vue({
	store,
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
